package flexUnitTests
{
	import flexunit.framework.Assert;
	
	import fr.fbhelp.parsing.ParseManager;
	
	public class ParserTests
	{		
		[Before]
		public function setUp():void
		{
		}
		
		[After]
		public function tearDown():void
		{
		}
		
		[BeforeClass]
		public static function setUpBeforeClass():void
		{
		}
		
		[AfterClass]
		public static function tearDownAfterClass():void
		{
		}
		
		[Test]
		public function testParseXMLConfig():void
		{
			var xmlStr:String = ' ' +
				'<helpcfg date="2010-03-23"> ' +
				'<product ' +
				'id="en_US_Flex_4.0" ' +
				'label="Flex 4" ' +
				'baseUrl="http://help.adobe.com/" ' +
				'path="HelpCfg/en_US/" ' +
				'ionId="flex_product_adobelr" ' +
				'ionCommentingAllowed="yes" ' +
				'ionSiteArea="help" ' +
				'ionRatingAllowed="yes" ' +
				'ionRatingType="thumbs" ' +
				'searchOptions="Community|Adobe|Blueprint" ' +
				'searchDefault="Community" ' +
				'multidomain="yes" ' +
				'searchAdobeRefinement="site=flex_4_all" ' +
				'/> ' +
				'<package ' +
				'id="en_US_Flex_4.0_UsingFlashBuilder" ' +
				'label="Using Adobe Flash Builder 4" ' +
				'path="en_US/Flex/4.0/UsingFlashBuilder" ' +
				'contextSensitivity="yes" ' +
				'downloadContent="client.Flex_4.0_UsingFlashBuilder_en-us.zip" ' +
				'downloadContentDefault="yes" ' +
				'/> ' +
				'<package ' +
				'id="en_US_Flex_4.0_AS3LCR" ' +
				'label="ActionScript 3.0 Language and Component Reference" ' +
				'path="en_US/AS3LCR/Flex_4.0" ' +
				'contextSensitivity="yes" ' +
				'downloadContent="Flex_4.0_en-us.zip" ' +
				'downloadContentDefault="yes" ' +
				'/> ' +
				'</helpcfg>';
			
			new ParseManager().parseXMLConfig(xmlStr);
		}
	}
}